﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NerdDinner.Models.Dinner>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete</h2>

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">DinnerID</div>
        <div class="display-field"><%= Html.Encode(Model.DinnerID) %></div>
        
        <div class="display-label">Title</div>
        <div class="display-field"><%= Html.Encode(Model.Title) %></div>
        
        <div class="display-label">EventDate</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.EventDate)) %></div>
        
        <div class="display-label">Description</div>
        <div class="display-field"><%= Html.Encode(Model.Description) %></div>
        
        <div class="display-label">HostedById</div>
        <div class="display-field"><%= Html.Encode(Model.HostedById) %></div>
        
        <div class="display-label">HostedBy</div>
        <div class="display-field"><%= Html.Encode(Model.HostedBy) %></div>
        
        <div class="display-label">ContactPhone</div>
        <div class="display-field"><%= Html.Encode(Model.ContactPhone) %></div>
        
        <div class="display-label">Address</div>
        <div class="display-field"><%= Html.Encode(Model.Address) %></div>
        
        <div class="display-label">Country</div>
        <div class="display-field"><%= Html.Encode(Model.Country) %></div>
        
        <div class="display-label">Latitude</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.Latitude)) %></div>
        
        <div class="display-label">Longitude</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.Longitude)) %></div>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> 
        </p>
    <% } %>

</asp:Content>

